<template>
	<view class="content">
		<image class="logo" src="/static/logo.jpg"></image>
		<text class="text">易粤语</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				time: 3,
			}
		},
		onLoad() {
			setTimeout(() => {
				// console.log("自动跳转到登陆界面")
				var token = uni.getStorageSync("token")
				if (token !== "") {
					// console.log("已经登陆过了")
					uni.switchTab({
						url: '/pages/home/home',
					})
				} else {
					uni.redirectTo({
						url: '/pages/login/login',
					})
				}
			}, 3000)
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.logo {
			height: 200rpx;
			width: 200rpx;
			margin-top: 400rpx;
			margin-left: auto;
			margin-right: auto;
			margin-bottom: 50rpx;
		}

		.text {
			font-size: 50rpx;
			color: #C0C0C0;
		}
	}
</style>
